import req1 from '@/lib/req1'
//获取日报列表
export function staListAPI(){
    return req1.get('/role/roleList')
}
//新增日报
export function addStaInsertAPI({role ,roleNote ,deptName}){
return req1.post('/role/roleAdd',{role ,roleNote ,deptName})
}
//修改
export function staUpdateAPI({id,role ,roleNote ,deptName  }){
  return req1.put('/role/roleUpdate',{id,role ,roleNote ,deptName })
}
//删除
export function staDeleteAPI(id){
    id = id.join()
    return req1.delete('/role/roleDelete',{id})
}
//搜索
export function staSeach({role}){
    return req1.get('/role/roleLike',{role})
}
//部门
export function depListAPI(){
    return req1.get('/archives/deptList')
}
